package jannex;

public class Vehicle {

    private final long id;
    private final int wheels;
    private final String color;

    public Vehicle(long id, int wheels, String color) {
        this.id = id;
        this.wheels = wheels;
        this.color = color;
    }

    public long getId() {
        return id;
    }

    public int getWheels() {
        return wheels;
    }

    public String getColor() {
        return color;
    }

    @Override
    public String toString() {
        return "Vehicle{" +
                "id=" + id +
                ", wheels=" + wheels +
                ", color='" + color + '\'' +
                '}';
    }
}
